package com.woniuxy.service;

import com.woniuxy.entity.User;
import com.woniuxy.vo.UserVO;

import java.util.List;
import java.util.Map;

public interface UserService {
    //        根据userId查询营地先关信息
    Map<String, Object> selectUserNowCampOrCity(int userId);
    //通过用户名或电话查询用户信息
    UserVO login(String userName,String password) throws Exception;
    //注册
    int insertUser(User user) throws Exception;
    //查询用户电话是否已存在
    String selectTel(String tel) throws Exception;

    //根据用户id更新用户余额
    int updateUserAccount(Map<String, Object> map) throws Exception;

    User selectUserByUserId(Integer userId) throws Exception;
    //用户头像非空更新
    int updateUserImgUrl(User user);
}
